<!DOCTYPE html>
<!-- saved from url=(0048)http://jewelry.bndvip.com/html/storeAddress.html -->
<html data-dpr="1" style="font-size: 54px;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="./门店地址_files/style1503546983737.css">
		
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	    <link rel="stylesheet" type="text/css" href="./门店地址_files/style.css">
	    <link rel="stylesheet" type="text/css" href="./门店地址_files/reset.css">
	    <link rel="stylesheet" type="text/css" href="./门店地址_files/swiper-4.2.6.min.css">
	    <script src="./门店地址_files/jquery.min.js"></script>
	    <script src="./门店地址_files/swiper-4.2.6.min.js" type="text/javascript" charset="utf-8"></script>
	    <script src="./门店地址_files/flexible.debug.js" type="text/javascript" charset="utf-8"></script>
	    <script src="./门店地址_files/flexible_css.debug.js" type="text/javascript" charset="utf-8"></script><style>@charset "utf-8";html{color:#000;background:#fff;overflow-y:scroll;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html *{outline:0;-webkit-text-size-adjust:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}html,body{font-family:sans-serif}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{margin:0;padding:0}input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}abbr,acronym{border:0;font-variant:normal}del{text-decoration:line-through}address,caption,cite,code,dfn,em,th,var{font-style:normal;font-weight:500}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:500}q:before,q:after{content:''}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}a:hover{text-decoration:underline}ins,a{text-decoration:none}</style>
	    <script src="./门店地址_files/jweixin-1.2.0.js" type="text/javascript" charset="utf-8"></script>
	    <script type="text/javascript" src="./门店地址_files/maps"></script><style type="text/css">.amap-container{cursor:url(http://webapi.amap.com/theme/v1.3/openhand.cur),default;}.amap-drag{cursor:url(http://webapi.amap.com/theme/v1.3/closedhand.cur),default;}</style>
		<script src="./门店地址_files/public.js" type="text/javascript" charset="utf-8"></script>
		<script src="./门店地址_files/js" type="text/javascript" charset="utf-8"></script><script src="./门店地址_files/main.js" type="text/javascript"></script>
		<title>门店地址</title>
	</head>
	<body style="font-size: 12px;">
		<header id="header" style="display: flex;">
		    <span class="location"></span>
		</header>
		<div id="main" class="main">
			<div class="storeCon"> <div class="storeList"><div class="list" onclick="changestore(20180718111017870292)"><img src="./门店地址_files/5b4eaf99ad92c.jpg" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">常尚赏养生会所</span><a href="tel:020-3996826" class="store_phone" style="float: right;">020-3996826</a> <span class="store_content" data="0" onclick="goMap(this,20180718111017870292)">广东省广州市番禺区亚运大道金港湾商铺</span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div> <div class="storeList"><div class="list" onclick="changestore(20180718111122441082)"><img src="./门店地址_files/5b4eafda15231.jpg" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">宇丰珠宝</span><a href="tel:13711263181" class="store_phone" style="float: right;">13711263181</a> <span class="store_content" data="0" onclick="goMap(this,20180718111122441082)">大罗珠宝城A区</span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div> <div class="storeList"><div class="list" onclick="changestore(20180718111222023568)"><img src="./门店地址_files/5b4eb032a34e0.jpg" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">誉凯丹犀服装店</span><a href="tel:13928829766" class="store_phone" style="float: right;">13928829766</a> <span class="store_content" data="0" onclick="goMap(this,20180718111222023568)">广东省广州市桥兴泰路50号</span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div> <div class="storeList"><div class="list" onclick="changestore(20180719165450701905)"><img src="./门店地址_files/5b5051da83a9a.jpg" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">鸣翠坊珠宝店</span><a href="tel:13809200026" class="store_phone" style="float: right;">13809200026</a> <span class="store_content" data="0" onclick="goMap(this,20180719165450701905)">广东省广州市番禺区市桥繁华路243号</span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div> <div class="storeList"><div class="list" onclick="changestore(20180725141010822305)"><img src="./门店地址_files/5b581442d6082.jpg" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">颖雅珠宝</span><a href="tel:13560202333" class="store_phone" style="float: right;">13560202333</a> <span class="store_content" data="0" onclick="goMap(this,20180725141010822305)">广东省广州市番禺区市桥清河路288号科尔海悦酒店大堂8号铺</span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div> <div class="storeList"><div class="list" onclick="changestore(20180725141052818839)"><img src="./门店地址_files/5b58146cbe11f.jpg" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">碧瑰缘分店笑妹姐珠宝</span><a href="tel:13632360366" class="store_phone" style="float: right;">13632360366</a> <span class="store_content" data="0" onclick="goMap(this,20180725141052818839)">广州市南沙区东涌镇大同村裕丰路大同巿场临街商铺14号</span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div> <div class="storeList"><div class="list" onclick="changestore(20180725141704115607)"><img src="./门店地址_files/5b5815e09bbfb.jpg" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">镗泽珠宝有限公司</span><a href="tel:13725149701" class="store_phone" style="float: right;">13725149701</a> <span class="store_content" data="0" onclick="goMap(this,20180725141704115607)">广州番禺大罗塘银平路25号金俊汇A馆1013        </span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div> <div class="storeList"><div class="list" onclick="changestore(20180725141835681946)"><img src="./门店地址_files/5b58163b990b7.jpg" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">凤轩茶庄</span><a href="tel:13822116777" class="store_phone" style="float: right;">13822116777</a> <span class="store_content" data="0" onclick="goMap(this,20180725141835681946)">广州市越秀区三育路31号</span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div> <div class="storeList"><div class="list" onclick="changestore(20180725141928517474)"><img src="./门店地址_files/5b5816702b33d.jpg" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">福琳珠宝</span><a href="tel:13682263985" class="store_phone" style="float: right;">13682263985</a> <span class="store_content" data="0" onclick="goMap(this,20180725141928517474)">广州市番禺区迎宾路星河湾酒店首层6号铺位</span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div> <div class="storeList"><div class="list" onclick="changestore(20180725160843654741)"><img src="./门店地址_files/5b58300baeb5d.png" name="storeImg" class="storeImg"><div class="storeTop"> <span class="store_name">德馨儿美容</span><a href="tel:020-3901091" class="store_phone" style="float: right;">020-3901091</a> <span class="store_content" data="0" onclick="goMap(this,20180725160843654741)">广州市南沙区大岗镇阳光城市广场二楼</span><input class="lat" type="hidden" value=""><input class="lng" type="hidden" value=""></div></div></div></div>
		</div>
		<input type="hidden" id="goods_id" name="goods_id" value="">
    	<input type="hidden" id="store_id" name="store_id" value="">
    	<input type="hidden" id="address_id" name="address_id" value="">
    	<input type="hidden" id="longitude" name="longitude">
    	<input type="hidden" id="latitude" name="latitude">
	
	
<script type="text/javascript">
	
	(function ($) {
        $.getUrlParam = function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }
    })
    (jQuery);
    
    $("#goods_id").val($.getUrlParam('goods_id'));
    $("#store_id").val($.getUrlParam('store_id'));
    $("#address_id").val($.getUrlParam('address_id'));

	
	 //选择看货地址
    function changestore(store_id) {
        var goods_id = $("#goods_id").val();
        var address_id = $("#address_id").val();
		if(goods_id == ''){
			return false;
		}
		else{
			window.location.href = url() + "html/order_filling.html?store_id="+store_id +"&goods_id="+goods_id +"&address_id="+address_id;
		}
        
    }
    //获取地址
		var latitude=window.localStorage.getItem('latitude');
		var longitude=window.localStorage.getItem('longitude');
		console.log(latitude)
   	$.ajax({
	        url: url() + "index.php?m=Api&c=index&a=getStoreInfo",
	        data:{'lat':latitude,'lng':longitude},
	        type: "get",
	        dataType: "json",
	        success: function (data) {
			console.log(data)
	            var html = ''
	            if (data.state == 1) {

	                $.each(data.data, function (i, data) {
	                    html += ' <div class="storeList">' +
	                        '<div class="list" onclick="changestore(' + data['store_id'] + ')" >' +
	                       	'<img src="' + url() + 'Public' + data['pic'] + '" name="storeImg" class="storeImg"/>'+
	                        '<div class="storeTop">' +
	                        ' <span class="store_name">' + data['store_name'] + '</span>' +
	                        '<a href="tel:' + data['mobile'] +' " class="store_phone" style="float: right;">' + data['mobile'] +'</a>'+
	                        ' <span class="store_content"  data="0" onclick="goMap(this,' + data['store_id'] + ')">' + data['address'] + '</span>' +
	                        '<input class="lat" type="hidden" value="' + data['lat'] + '">' +
	                        '<input class="lng" type="hidden" value="' + data['lng'] + '">' +
	                        '</div>' + '</div>' +
	                      	'</div>'
	
	                })
	
	                $(".storeCon").html('');
	                $(".storeCon").html(html);
	            }
	            else if (data.state == 0) {
					console.log("附近没有客服中心")
	            } else if (data.state == -1) {
	                alert("没登录");
	                window.location.href = url() + "index.php?m=Api&c=WeChat&a=start";
	            }
	        }
	    })
   	$(function () {
        getmap();
    });
// 	function goMap(this2,store_id){
//      var a = $(this2).attr("data");
//      if (a == 0) {
//          $(this2).attr("data", 1)
//      } else {
//          $(this2).attr("data", 0)
//      }
// 		var mapList = [];
//      $(".store_content").each(function () {
//          if ($(this).attr("data") == 1) {
//              storeImg = $(this).closest('.storeList').find(".storeImg").attr('src');
//              store_name = $(this).closest('.storeList').find(".store_name").html();
//              store_phone = $(this).closest('.storeList').find(".store_phone").html();
//              store_content = $(this).closest('.storeList').find(".store_content").html();
//              lat = $(this).closest('.storeList').find(".lat").val();
//              lng = $(this).closest('.storeList').find(".lng").val();
//
//              mapList.push({
//                  'store_id': store_id,
//                  'storeImg': storeImg,
//                  'store_name': store_name,
//                  'store_phone': store_phone,
//                  'store_content': store_content,
//                  'lat': lat,
//                  'lng': lng
//              })
//          }
//      })
//      console.log(mapList)
//      var mapList = JSON.stringify(mapList)
//      window.localStorage.setItem("mapList", mapList)
//      if(store_id == ''){
//          return false;
//      }else {
//          window.location.href = "storeMap.html";
//      }
//    
//
// 	}
   	function getmap() {
        var window_url = window.location.href;
      //  var goods_id = $("#goods_id").val();
        $.ajax({
            url: url() + "index.php?m=Api&c=WeChat&a=shareAPi",
            dataType: 'json',
            data: {"url": window_url},
            type: "post",
            success: function (data) {
                console.log(data);
                wx.config({
                    debug: false,
                    appId: "wxdb881a1df61d1699",
                    timestamp: data.data.timestamp,
                    nonceStr: data.data.noncestr,
                    signature: data.data.signature,
                    jsApiList: ['openLocation','getLocation'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
                });
            },
            error: function () {
                console.log(222);
            }
        })
    }
    function goMap(this2,id) {
//  	var a = $(this2).attr("data");
//      if (a == 0) {
//          $(this2).attr("data", 1)
//          $('.store_content').attr("data", 0)
//      } else {
//          $(this2).attr("data", 0)
//          $('.store_content').attr("data", 0)
//      }
//      $(".store_content").each(function () {
//          if ($(this).attr("data") == 1) {
              	var storeImg = $(this2).parent().parent().find(".storeImg").attr('src');
                var store_name = $(this2).parent().parent().find(".store_name").html();
                var store_phone = $(this2).parent().parent().find(".store_phone").html();
                var store_content = $(this2).parent().parent().find(".store_content").html();
                var lat = $(this2).parent().parent().find(".lat").val();
                var lng = $(this2).parent().parent().find(".lng").val();

//          }
//      })
		console.log($(this2).index())
        wx.getLocation({
            type : 'wgs84', // 默认为wgs84的gps坐标，如果要返回直接给openLocation用的火星坐标，可传入'gcj02'
            success : function(res) {
                      //使用微信内置地图查看位置接口
                wx.openLocation({
                    latitude : lat, // 纬度，浮点数，范围为90 ~ -90
                    longitude : lng, // 经度，浮点数，范围为180 ~ -180。
                    name : store_name, // 位置名
                    address : store_content, // 地址详情说明
                    scale : 28, // 地图缩放级别,整形值,范围从1~28。默认为最大
                //    infoUrl : 'http://www.gongjuji.net' // 在查看位置界面底部显示的超链接,可点击跳转（测试好像不可用）
                });
            },
            cancel : function(res) {
                alert("浏览器不支持使用微信地图");
           }
        });
    }
</script>

</body></html>